﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Evolution.Structure.Globe.Units;
using Evolution.Structure.Globe.Details.Cities;
using Evolution.Structure.Globe;
using System.ComponentModel;

namespace Evolution.Structure
{
    public class Player
    {
        public String Name { get; set; }

        public Nation Nation { get; set; }
        public BindingList<City> Cities { get; private set; }
        public World KnownWorld { get; private set; }
        public List<Unit> Units { get; private set; }
        public List<Technology> Technologies { get; private set; }
        public Resources PlayerResources { get; set; }

        public Technology CurrentTechnologyUnderReseach { get; private set; }
        public double ResearchExpensesForCurrentTech { get; private set; }

        public Player()
        {
            PlayerResources = new Resources();
            Cities = new BindingList<City>();
            Units = new List<Unit>();
            Technologies = new List<Technology>();
        }

        public Player(string name)
        {
            PlayerResources = new Resources();
            Cities = new BindingList<City>();
            Units = new List<Unit>();
            Technologies = new List<Technology>();
            this.Name = name;
        }

        public override String ToString()
        {
            return this.Name;
        }
    }
}
